package com.ruoyi.optimization.domain;


import java.util.List;
import java.util.Map;

public class optimizeRes {
    private Long id;
    private List<MaterialRes> material; // 每个原料的使用
    private Double fitness; // 总利用率
    private Double loss; // 损失值
    private Map<String, Integer> partLengthToCount; // 零件长度和数量
    private Map<String, Integer> materialLengthToCount; // 使用的原料长度和数量

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public List<MaterialRes> getMaterial() {
        return material;
    }
    public void setMaterial(List<MaterialRes> material) {
        this.material = material;
    }
    public Double getFitness() {
        return fitness;
    }
    public void setFitness(Double fitness) {
        this.fitness = fitness;
    }
    public Double getLoss() {
        return loss;
    }
    public void setLoss(Double loss) {
        this.loss = loss;
    }
    public Map<String, Integer> getPartLengthToCount() {
        return partLengthToCount;
    }
    public void setPartLengthToCount(Map<String, Integer> partLengthToCount) {
        this.partLengthToCount = partLengthToCount;
    }
    public Map<String, Integer> getMaterialLengthToCount() {
        return materialLengthToCount;
    }
    public void setMaterialLengthToCount(Map<String, Integer> materialLengthToCount) {
        this.materialLengthToCount = materialLengthToCount;
    }
    @Override
    public String toString() {
        return "optimizeRes{" +
                "material=" + material +
                ", fitness=" + fitness +
                ", loss=" + loss +
                ", partLengthToCount=" + partLengthToCount +
                ", materialLengthToCount=" + materialLengthToCount +
                '}';
    }
}
